package com.tanhua.server.exeception;

import com.tanhua.model.vo.ErrorResult;
import lombok.Data;

/**
 * @author SunSun
 * @date 2021/10/23
 */
@Data
public class BusinessException  extends RuntimeException{
    private ErrorResult errorResult;

    public BusinessException(ErrorResult errorResult){
        super(errorResult.getErrMessage());
        this.errorResult=errorResult;
    }
}
